package com.taldh.design.patterns.state;

public class App {

    public static void main(String[] args) {

        SafeFrame f=new SafeFrame("状态模式");
        while(true){
            for(int hour=1;hour<=24;hour++){
                f.setClock(hour);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }

    }

}